<div class="form-inline">
    <label class="control-label"><?php echo isset($lblDateTimeName) ? $lblDateTimeName : '日期'; ?></label>
    <div class="input-daterange input-group">
        <input type="text" class="input-sm form-control datepicker"
               name="start_time"
               value="<?php echo $reqStartTime; ?>"/>
        <?php
        if (isset($showEndTime) && $showEndTime == true) {
            echo '<span class="input-group-addon">到</span><input type="text" class="input-sm form-control datepicker" name="end_time" value="' . $reqEndTime . '"/>';
        }
        ?>
    </div>
    <?php
    if ($errors->has('start_time')) {
        echo "<span class=\"help-block m-b-none\"><i class=\"fa fa-info-circle\"></i>{$errors->first('start_time')}</span>";
    }
    if (isset($showEndTime) && $showEndTime == true && $errors->has('end_time')) {
        echo "<span class=\"help-block m-b-none\"><i class=\"fa fa-info-circle\"></i>{$errors->first('end_time')}</span>";
    }
    ?>
</div>